package com.luoc.service;

/**
 * @Author: luoc
 * @Date: 2019/10/10 16:45
 */
public class MovieTicket {

    private Discount discount;

    private Double price;

    public Double getDiscountPrice(){
       return discount.calculate(this.price);
    }


    public Discount getDiscount() {
        return discount;
    }

    public void setDiscount(Discount discount) {
        this.discount = discount;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
